/**
 * __placeholder__
 *
 * @format
 */

export default (await import('vue')).defineComponent({
  data() {
    return {
      childTitle: '活动列表',
      top: 68,
      tabs: ['新闻', '活动'],
      tabIndex: 0,
      skiList: [],
      params: {
        pageNum: 1,
        pageSize: 20,
      },
    }
  },
  onLoad() {
    console.log(this.skiList)
    // setTimeout(() => {
    wx.request({
      url: this.$httpApi.install.slope,
      method: 'GET',
      data: this.params,
      success(res) {
        console.log(res.data.rows)
        this.skiList = res.data.rows
      },
    })
    this.getNewList()
    // }, 1500)
  },

  methods: {
    // 动态接收导航栏高度
    getMarginTop(marginTop) {
      this.top = marginTop ? marginTop : 150
    },
    changeTab(index) {
      this.tabIndex = index
    },
    getNewList() {},
  },
})
